package com.woniu.car.controller;


import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.woniu.car.clientdto.ServiceDetailDto;
import com.woniu.car.common.ResponseEntity;
import com.woniu.car.entity.TStatisticsPlatform;
import com.woniu.car.entity.TStatisticsShop;
import com.woniu.car.exception.StatisticsException;
import com.woniu.car.feign.PlatformClient2Service;
import com.woniu.car.parameter.DetailQueryParam;
import com.woniu.car.parameter.StatisticsPlatformParameter;
import com.woniu.car.properties.StatisticsProperties;
import com.woniu.car.service.TStatisticsPlatformService;
import com.woniu.car.service.TStatisticsShopService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.sql.ClientInfoStatus;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wuyanzu
 * @since 2021-06-22
 */
@RestController
//@Api(tags = "统计平台收益控制层")
public class TStatisticsPlatformController {
    @Autowired
    private TStatisticsPlatformService statisticsPlatformService;

    //统计平台各个商品收益且单独把总收益标注出来返回给前端 日/月
    //为空就redis中查询平台今日所有的商品消息
    //不为空,根据前端传来的数据,查询mysql数据库,查询t_statistics_platform表,条件为time=20212020
//    @GetMapping("/StatisticsPlatform1")
//    @ApiOperation("查询平台商/品收益")
//    public ResponseEntity StatisticsPlatform1(@Validated StatisticsPlatformParameter parameter) throws StatisticsException {
//        return statisticsPlatformService.StatisticsPlatform(parameter);
//    }
    
    
}

